package cc.czlee.cloud.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/*
 * Create by Colbert on 2019-05-02
 *
 * Copyright (C) 2019 chuanzhigo@gmail.com.
 */
@EnableDiscoveryClient
@EnableConfigServer
@SpringBootApplication
public class ConfigApplication {

    /*
     * 当访问的路径为 http://localhost:8500/gateway-zuul/dev 对应 git 上的文件为 gateway-zuul-dev.properties
     *
     * 开发环境:
     * dev -> 开发
     * pro -> 生产
     * test-> 测试
     *
     * 文件名:
     * gateway-zuul
     *
     * url 的访问规则为: /文件名/环境/分支
     *
     * 如果url中没有分支则默认为 master
     */
    public static void main(String[] args) {
        SpringApplication.run(ConfigApplication.class, args);
    }
}
